home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
comm
/
misc
/
avmNfax1_33.lha
/
AVMSuite
/
rexx
/
broadcast.avm
< prev
next >
Wrap
Text File
|
1994-06-24
|
2KB
|
79 lines
/* to broadcast to interested parties about changes in mailboxes */
/* action = 'addtomailbox', 'deletefrommailbox', 'refreshmailbox', 'refreshmailboxentry' */
parse arg action mailbox magiccookie .
call addlib("rexxsupport.library", 0, -30, 0)
/* who are interested? AVMCALLNOTIFIER, AVMLOGVIEW.#? */
ports = upper(show('p'))
numports = words(ports)
if action = 'addtomailbox' | action = 'deletefrommailbox' then do
if showlist('p', 'AVMCALLNOTIFIER') then
address 'AVMCALLNOTIFIER' action mailbox magiccookie
do i = 1 to numports
cport = word(ports, i)
if pos('AVMLOGVIEW', cport) > 0 then do
address value cport
''action mailbox magiccookie
end
if pos('AVMSCHEDULER.', cport) > 0 then do
address value cport
''action mailbox magiccookie
end
if pos('AVMSCHEDULERVIEW', cport) > 0 then do
address value cport
''action mailbox magiccookie
end
end
end
if action = 'refreshmailbox' then do
if showlist('p', 'AVMCALLNOTIFIER') then
address 'AVMCALLNOTIFIER' action mailbox
do i = 1 to numports
cport = word(ports, i)
if pos('AVMLOGVIEW', cport) > 0 then do
address value cport
''action mailbox
end
if pos('AVMSCHEDULER.', cport) > 0 then do
address value cport
''action mailbox
end
if pos('AVMSCHEDULERVIEW', cport) > 0 then do
address value cport
''action mailbox
end
end
end
if action = 'refreshmailboxentry' then do
do i = 1 to numports
cport = word(ports, i)
if pos('AVMLOGVIEW', cport) > 0 then do
address value cport
''action mailbox magiccookie
end
if pos('AVMSCHEDULER.', cport) > 0 then do
address value cport
''action mailbox magiccookie
end
if pos('AVMSCHEDULERVIEW', cport) > 0 then do
address value cport
''action mailbox magiccookie
end
end
end